Figure 15. Request-Response Loop: Application and Server Level
The HTTP server forwards a request to the application's adaptor. The adaptor packages the incoming HTTP request in a form the WebObjects application can understand and forwards it to the application. The application determines the type of the request (component action request or direct action request) and then forwards it to the appropriate request handler. The request handler manages the process of request handling and returns the completed response to the application, which passes it on to the adaptor, which gives it to the HTTP server in a form the server can understand.
Two classes are involved at this level:
Defines the interface for objects mediating the exchange of data between an HTTP server and a WebObjects application. This is an abstract class.
Receives requests from the adaptor, determines which request handler should handle the request, and forwards the request to that handler. After the request handler completes its processing, the application returns a response to the adaptor. WOApplication also creates dynamic elements "on the fly" and manages adaptors, sessions, application resources, and components.
Manages the process of request handling and returns the completed response to the application. This is an abstract class.
Table of Contents
Next Section